/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.oracle.javaee.business;

import javax.ejb.Local;
import javax.ejb.LocalBean;
import javax.ejb.Remote;
import javax.ejb.Singleton;

/**
 *
 * @author ftorres
 */
@Singleton
@Local(StatusLocal.class)
@Remote(StatusRemote.class)
@LocalBean
public class StatusBean implements StatusRemote, StatusLocal {
    private long counter = 0;

    /**
     *
     */
    @Override
    public long getCounter() {
        return counter++;
    }
}
